package com.swordliu.facebook.service.base;

import java.io.Serializable;

/**
 * Created by SwordLiu on 2017-07-03.
 */
public interface BaseService<T> {

    Serializable add(T t) throws Exception;

    boolean delete(Serializable id) throws Exception;

    T get(Serializable id) throws Exception;

    void update(T t) throws Exception;


}
